home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
programming
/
c
/
pmm
/
batch
/
makestublib.s
< prev
next >
Wrap
AmigaDOS Script File
|
1999-11-30
|
2KB
|
80 lines
.KEY NAME,FD
.BRA {
.KET }
FailAt 99999999
Cd Lib:
If NOT EXISTS LibStubs/{NAME}
MakeDir LibStubs/{NAME}
EndIf
If NOT EXISTS AutoLib
MakeDir AutoLib
EndIf
Echo "{FD}"
PmmTool -n {FD} Lib:{NAME}.Lib
If WARN
Cd Lib:AutoLib
GenAuto {FD}
Cd Lib:LibStubs/{NAME}
Delete #? ALL
MakeDir STD
MakeDir 040
MakeDir PPC
MakeDir WOS
Delete Lib:{NAME}.#?
Delete Lib:{NAME}_#?
Cd Lib:LibStubs/{NAME}/STD
FD2Lib {FD}
List #?.s LFormat="PhxAss %s" > Lib:LibStubs/{NAME}/Make_{Name}.AsmSTD
Execute Lib:LibStubs/{NAME}/Make_{Name}.AsmSTD
List #?.o LFORMAT="PmmLibr R Lib:{NAME} %m" > Lib:LibStubs/{NAME}/Make_{Name}.LibSTD
Execute Lib:LibStubs/{NAME}/Make_{Name}.LibSTD
Else
Echo "{NAME}.Lib ist aktuell!"
EndIf
PmmTool -n {FD} Lib:{NAME}_040.Lib
If WARN
Cd Lib:LibStubs/{NAME}/040
FD2Lib -40 {FD}
List #?.s LFormat="PhxAss %s" > Lib:LibStubs/{NAME}/Make_{Name}.Asm040
Execute Lib:LibStubs/{NAME}/Make_{Name}.Asm040
List #?.o LFORMAT="PmmLibr R Lib:{NAME}_040 %m" > Lib:LibStubs/{NAME}/Make_{Name}.Lib040
Execute Lib:LibStubs/{NAME}/Make_{Name}.Lib040
Else
Echo "{NAME}_040.Lib ist aktuell!"
EndIf
PmmTool -n {FD} Lib:{NAME}_PPC.a
If WARN
Cd Lib:LibStubs/{NAME}/PPC
FD2LibPPC {FD}
List #?.s LFormat="vbin:Pasm_wos -R -F1 -O65536 %s" > Lib:LibStubs/{NAME}/Make_{Name}.AsmPPC
Execute Lib:LibStubs/{NAME}/Make_{Name}.AsmPPC
List #?.o LFORMAT="ppc-amigaos-ar qv Lib:{NAME}_PPC.a %n" > Lib:LibStubs/{NAME}/Make_{Name}.LibPPC
Execute Lib:LibStubs/{NAME}/Make_{Name}.LibPPC
Else
Echo "{NAME}_PPC.a ist aktuell!"
EndIf
PmmTool -n {FD} Lib:{NAME}_WOS.Lib
If WARN
Cd Lib:LibStubs/{NAME}/WOS
FD2LibWOS {FD}
List #?.s LFormat="vbin:Pasm_wos -F2 -O65536 %s" > Lib:LibStubs/{NAME}/Make_{Name}.AsmWOS
Execute Lib:LibStubs/{NAME}/Make_{Name}.AsmWOS
List #?.o LFORMAT="PmmLibr R Lib:{NAME}_WOS %m" > Lib:LibStubs/{NAME}/Make_{Name}.LibWOS
Execute Lib:LibStubs/{NAME}/Make_{Name}.LibWOS
Else
Echo "{NAME}_WOS.Lib ist aktuell!"
EndIf